package love.yuanmengrobot.qianyugarden.controller;

import love.yuanmengrobot.qianyugarden.entity.PrivateChat;
import love.yuanmengrobot.qianyugarden.service.PrivateChatService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * 私聊(PrivateChat)表控制层
 *
 * @author makejava
 * @since 2021-07-13 14:00:41
 */
@Controller
@RequestMapping("privateChat")
public class PrivateChatController {
    /**
     * 服务对象
     */
    @Autowired
      PrivateChatService privateChatService;

    /**
     * 通过主键查询单条数据
     *
     * @param id 主键
     * @return 单条数据
     */
    @RequestMapping("selectOne")
    public PrivateChat selectOne(String id) {
        return this.privateChatService.queryById(id);
    }

}
